﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Manage/Base.Master" AutoEventWireup="true" CodeBehind="UserDetail.aspx.cs" Inherits="Exhibition.Manage.UserDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <input type="hidden" runat="server" id="hfId" />

    <table class="tbs_table">
         
        <tr>
           
            <td class="tddata" align="left" colspan="4">
                <asp:RadioButtonList ID="rdoNation" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Value="0">国内</asp:ListItem>
                    <asp:ListItem Value="1">国际</asp:ListItem>
                </asp:RadioButtonList>
               
            </td>
        </tr>
        <tr>
            <td class="tdtitle" style="width:120px;">用户名</td>
            <td class="tddata">
                <input type="text" runat="server" id="txtUserName" datafield="txtUserName" /></td>
        </tr>

        <tr>
            <td class="tdtitle">真实姓名</td>
            <td class="tddata">
                <input type="text" runat="server" id="txtRealName" datafield="txtRealName" /></td>
        </tr>
        <tr>
            <td class="tdtitle">密码</td>
            <td class="tddata">
                <input type="password" runat="server" id="txtPassWord" datafield="txtPassWord" class="text" /></td>
        </tr>
        <tr>
            <td class="tdtitle">性别</td>
            <td class="tddata">
                <asp:DropDownList ID="drpList" runat="server">
                    <asp:ListItem Value="0">保密</asp:ListItem>
                    <asp:ListItem Value="1">男</asp:ListItem>
                    <asp:ListItem Value="2">女</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>

        <tr>
            <td class="tdtitle">邮箱</td>
            <td class="tddata">
                <input type="text" runat="server" id="txtEmail" datafield="txtEmail" /></td>
        </tr>
        <tr>
            <td class="tdtitle">手机</td>
            <td class="tddata">
                <input type="text" runat="server" id="txtMobile" datafield="txtMobile" /></td>
        </tr>
        <tr>
            <td class="tdtitle">公司名称</td>
            <td class="tddata">
                <input type="text" runat="server" id="txtCompName" datafield="txtCompName" /></td>
        </tr>
        <tr>
            <td class="tdtitle">地址</td>
            <td class="tddata">
                <input type="text" style="width:500px;" runat="server" id="txtUserAddress" datafield="txtUserAddress" /></td>
        </tr>

        <tr>
            <td class="tdtitle">性质</td>
            <td class="tddata">
            <asp:Literal ID="ltrRdo" runat="server"></asp:Literal>   
            </td>
        </tr>

        <tr>
            <td class="tdtitle">来源</td>
            <td class="tddata">
                <input type="text" runat="server" id="txtInCome" datafield="txtInCome" /></td>
        </tr>


        <tr>
            <td class="tdtitle">用户类别 </td>
            <td class="tddata">

                <asp:DropDownList ID="drpType" runat="server">
                    <asp:ListItem Value="1">观众</asp:ListItem>
                    <asp:ListItem Value="2">展商</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="tdtitle">是否高级会员</td>
            <td class="tddata">
                <asp:CheckBox ID="chkIsMember" runat="server" />
            </td>
        </tr>
        <tr>
            <td class="tdtitle">用户等级</td>
            <td class="tddata">
                  <div id="star"></div><div id="result"></div><input type="hidden" runat="server"  id="hfLevel" value="0" datafield="hfLevel"/></td>
        </tr>
        <tr>
            <td class="tdtitle">认可联系方式</td>
            <td class="tddata">
                <asp:Literal ID="ltrContact" runat="server"></asp:Literal></td>
        </tr>
        <tr>
            <td colspan='4' align='center'>
                <asp:Button ID="btnSave" runat="server" Text="保存" CssClass="bt_wb1" OnClick="btnSave_Click" />&nbsp;&nbsp;<input type="button" value="返回" class="bt_wb1" onclick="YXQ.Manager.CloseDialog();" /></td>
        </tr>
    </table>
     <script type="text/javascript">
         $("#result").hide();//将结果DIV隐藏
         $('#star').raty({
             hints: ['1', '2', '3', '4', '5'],
             path: "../images",
             starOff: 'star-off-big.png',
             starOn: 'star-on-big.png',
             size: 24,
             target: '#result',
             score: '<asp:Literal ID="ltrSore" runat="server"></asp:Literal>',
             targetKeep: true
         });

         //弹出结果
         var text = $('#result').text();
         $('img').click(function () {
             if ($('#result').text() != text) { 
                 $("[datafield='hfLevel']").val($('#result').text()); 
                 return;
             }
         });
    </script>
</asp:Content>
